package cn.bonoon.controllers.question;

import java.util.Date;

import cn.bonoon.kernel.annotations.condition.ConditionField;
import cn.bonoon.kernel.annotations.condition.ConditionOpt;
import cn.bonoon.kernel.query.PageCondition;
import cn.bonoon.kernel.util.Opt;
import cn.bonoon.kernel.web.annotations.condition.ConditionContent;
import cn.bonoon.kernel.web.annotations.condition.ConditionUI;

public class AskCondition extends PageCondition implements AsknDefine {

	/**
	 * 
	 */
	private static final long serialVersionUID = 3321199416909950427L;

	@ConditionContent(ordinal = 1)
	private String searchQuestion;

	@ConditionContent(ordinal = 2)
	private String searchCreatorName;

	@ConditionField(value = "createAt")
	@ConditionOpt(Opt.GE)
	@ConditionContent(value = "时间  从", ordinal = 4)
	private Date searchStartAt;

	@ConditionField(value = "createAt")
	@ConditionOpt(Opt.LE)
	@ConditionContent(value = "到", ordinal = 5)
	private Date searchEndAt;

	@ConditionContent(ordinal = 3, ui = ConditionUI.NONE)
	private Boolean searchAnswered;

	public String getSearchQuestion() {
		return searchQuestion;
	}

	public void setSearchQuestion(String searchQuestion) {
		this.searchQuestion = searchQuestion;
	}

	public String getSearchCreatorName() {
		return searchCreatorName;
	}

	public void setSearchCreatorName(String searchCreatorName) {
		this.searchCreatorName = searchCreatorName;
	}

	public Date getSearchStartAt() {
		return searchStartAt;
	}

	public void setSearchStartAt(Date searchStartAt) {
		this.searchStartAt = searchStartAt;
	}

	public Date getSearchEndAt() {
		return searchEndAt;
	}

	public void setSearchEndAt(Date searchEndAt) {
		this.searchEndAt = searchEndAt;
	}

	public Boolean getSearchAnswered() {
		return searchAnswered;
	}

	public void setSearchAnswered(Boolean searchAnswered) {
		this.searchAnswered = searchAnswered;
	}


}
